import Vue from 'vue'
import App from './App'
import KgoApp from './KgoApp'
import router from './router'
import store from './store'

// 注册全局组件
import BaseCard from './components/Card/BaseCard'
import ContinuousCard from './components/Card/ContinuousCard'
import InfoCard from './components/Card/InfoCard'

import ShowArticleByHTML from './components/article/ShowArticleByHTML'
import ShowArticle from './components/Card/ShowArticle'
import topLump from './components/lump/topModule'
import infoLump from './components/lump/infoLump'
//表单
import AloneSelect from './components/form/aloneSelect'
import AloneTextarea from './components/form/aloneTextarea'
import Markdown from './components/editor/markdown'

import WangEditor from './components/editor/wangEditor'
import LayEdit from './components/editor/LayEdit'

import ArticleList from './components/article/ArticleList'


Vue.config.productionTip = false

Vue.component('alone-select',AloneSelect)
Vue.component('alone-textarea',AloneTextarea)
Vue.component('base-card',BaseCard)
Vue.component('info-card',InfoCard)
Vue.component('continuous-card',ContinuousCard)

Vue.component('top-lump',topLump)
Vue.component('info-lump',infoLump)
Vue.component('show-article-HTML',ShowArticleByHTML)
Vue.component('article-content',ShowArticle)
Vue.component('mark-down',Markdown)

Vue.component('wang-editor',WangEditor)
Vue.component('lay-edit',LayEdit)

Vue.component('article-list',ArticleList)


/**
 * vue layui表单全局注册
 */
import LayuiSelectBlock from '@/components/form/layuiSelectBlock'
Vue.component('layui-select-block',LayuiSelectBlock)
import LayuiSelectInline from '@/components/form/layuiSelectInline'
Vue.component('layui-select-inline',LayuiSelectInline)

import LayuiInputBlock from '@/components/form/layuiInputBlock'
Vue.component('layui-input-block',LayuiInputBlock)




/* eslint-disable no-new */
new Vue({
  el: '#app',
  store,
  router,
  render: h => h(KgoApp)
})
Vue.prototype.ViewHeight = document.body.clientHeight-60;
Vue.prototype.RootUrl = "http://118.25.239.234:8866";
//Vue.prototype.RootUrl = "http://127.0.0.1:8866";
